﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IntraVision.Web;

namespace Model
{
    public partial class Company : IClient
    {
        #region IClient Members
        public string IdStr
        {
            get { return String.Format("c{0}", this.Id); }
        }
        public string TypeName
        {
            get { return "company"; }
        }
        public int Cid
        {
            get { return this.Id * 10; }
        }
        bool IClient.IsCashless
        {
            get { return this.IsCashless; }
        }
        #endregion

        public string ToUnionLink()
        {
            return string.Format("<a href=\"company.ivp/union/{0}\">{1}</a>", this.Id, this.Name);
        }
    }
}
